Distortion compensation

ABSTRACT

A distortion compensation system minimizes distortion in an audio system by monitoring a supply voltage and adjusting a clipping threshold and/or compression knee. An adjustable gain circuit controls the gain of the audio signal according whether the audio signal exceeds a variable threshold. The variable threshold is adjusted within a threshold range based on the supply voltage. Distortion due to clipping of the audio signal is minimized while available power at any given time is maximized.

This application is a continuation application that, pursuant to 35 U.S.C. §120, claims the priority of U.S. patent application Ser. No. 11/305,498, “DISTORTION COMPENSATION” filed Dec. 15, 2005, the entire contents of which are incorporated by reference.

BACKGROUND OF THE INVENTION

1. Technical Field

The invention relates to audio amplifiers, and particularly to distortion compensation in amplifiers for vehicle audio systems.

2. Related Art

Automotive audio systems include one or more amplifiers that provide gain for audio signals. The gain of an amplifier depends, at least in part, on the amount of power supplied to the amplifier. Because the supply voltage varies over a range of several volts, the amount of power that is available to the amplifier will also vary over a wide range. If the voltage in the vehicle is insufficient for the amplifier to accurately amplify the input signal, the amplifier may clip, and the audio signal from the amplifier will be distorted. Accordingly, amplifiers may be designed to control audio output according to fluctuations, or variations, in the limits of the battery supply voltage, or minimum expected available power.

To preclude the amplifier from being overdriven, an amplifier may control the audio output based on analog or digital signal processing techniques. For example, an amplifier may monitor the audio signal to modify portions of the audio output signal that may exceed a predetermined threshold. Analog amplifiers may use an analog clip detection circuit, which utilizes a voltage controlled amplifier to reduce overall gain during portions of the audio output signal that exceeds the vehicle voltage. Since clip detection of monolithic power amplifier integrated circuits is typically shared over two or more channels, the analog control maintains a relatively constant amount of distortion, but may not control the distortion for each channel independently.

A digital amplifier may use a digital signal processor (DSP) to predict an output signal level on the channels of a digitally-sampled audio signal. The DSP reduces the gain for the portions of the signal that exceed a programmed threshold. A DSP may independently control each channel to tailor the amount of distortion. However, the threshold may be set, or hard-coded, into the digital signal processor. To account for variations in power supplied to the amplifier, the threshold may be set much lower than the actual level that may be available from the battery. Accordingly, hard-coded distortion limiting using a DSP may not provide an optimal amplification of the audio signal for a wide range of battery supply voltages.

Therefore, there is a need for a distortion compensation for automotive amplifier applications.

SUMMARY

A system controls or compensates for audio distortion based on a supply voltage, such as the voltage supplied by the battery of an automobile. A signal related to the supply voltage is used to control the gain, and distortion, of an audio signal. In an example, the supply voltage signal is used to control a threshold level that determines whether the audio signal may be clipped. Using the supply voltage provides for control of distortion, increasing the perceived sound quality.

A clipping threshold may be adjusted according to a supply voltage signal. An audio amplifier may be tuned to have a pre-determined clipping threshold, or tuned threshold based on the supply voltage at the time of tuning. A signal associated with the supply voltage can be used to determine an adjustment to the tuned threshold to provide an applied threshold. As the battery voltage decreases, the signal associated with the decreased battery voltage decreases the tuning threshold by an appropriate amount to decrease the applied threshold. When the battery voltage increases, the tuned threshold may be increased accordingly to maximize the amplifier operation. Accordingly, the threshold may be modified according to the supply voltage to maintain a fixed level of distortion and maximize power output.

An exemplary automotive audio amplifier includes a gain circuit, a threshold detect circuit, and a voltage sensor. The gain circuit controls the gain for at least one channel of a multi-channel audio signal. The gain is controlled based on a gain adjust signal. The threshold detect circuit generates the gain adjust signal based on whether an output of the gain circuit exceeds the threshold. The voltage sensor generates a voltage sense signal associated with a battery supply voltage for the amplifier. The threshold is adjustable according to the voltage sense signal.

Another exemplary automotive audio system includes a controller and an amplifier. The controller provides control of the gain for each channel of a multi-channel audio signal based on whether the audio signal exceeds a threshold. The threshold is adjustable according to the supply voltage of the audio system. The amplifier amplifies the gain adjusted multi-channel audio signal.

Another exemplary automotive audio system includes a compressor circuit and a voltage sensor. The compressor controls a signal level for at least one channel of a multi-channel audio signal. A compression ratio transition point, or knee, of the compressor is controlled according to a voltage sense signal generated by the sensor.

An exemplary method includes detecting whether an amplified audio signal will exceed a threshold limit. When the amplified signal exceeds the threshold limit, the gain of an amplifier circuit corresponding to the channel is reduced. A rail voltage is detected and may be used to modify the threshold limit.

Other systems, methods, features and advantages of the invention will be, or will become, apparent to one with skill in the art upon examination of the following figures and detailed description. It is intended that all such additional systems, methods, features and advantages be included within this description, be within the scope of the invention, and be protected by the following claims.

BRIEF DESCRIPTION OF THE DRAWINGS

The invention can be better understood with reference to the following drawings and description. The components in the figures are not necessarily to scale, emphasis instead being placed upon illustrating the principles of the invention. Moreover, in the figures, like referenced numerals designate corresponding parts throughout the different views.

FIG. 1 is a block diagram of an exemplary distortion compensation system.

FIG. 2 is a graph of a transfer curve for a distortion compensation system.

FIG. 3 is a distortion compensation system for linked channels.

FIG. 4 is a flow chart for distortion compensation.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

A distortion compensation system minimizes audio distortion by monitoring a supply voltage. In the figures, components, features and integral parts that correspond to one another each have the same reference number. The figures are not true to scale.

The distortion compensation system may be used with an automotive or vehicle audio system. A distortion compensation system may be a component or a unitary part of an audio amplifier for the automotive audio system. The audio amplifier is powered by a rail voltage supplied by the automotive battery. The rail voltage may fluctuate within an operating range typically from around 9 Volts to around 14 Volts. The rail voltage is compared or measured against a reference voltage, which may be a tuning voltage. A signal representative of the comparison, or measurement, is generated. The signal is sent to a controller that processes the multi-channel audio signal for the audio system. The controller controls gain of an audio signal based on a comparison of the rail voltage to the tuning voltage. The gain is controlled according to whether the audio signal exceeds a variable threshold. The threshold is varied within a threshold range according to the comparison. Accordingly, distortion in the audio signal may be compensated according to supply voltage.

In a method that compensates for distortion, the gain of an audio signal is controlled through a comparison of a rail voltage to a tuning voltage. Based on the comparison, a cutoff threshold for an amplifier and/or the knee of a compressor is adjusted to minimize distortion in the audio path.

FIG. 1 is a block diagram of an exemplary distortion compensation system 100. The distortion compensation system 100 may be configured as a controller, or may be a unitary part of a controller that processes an audio signal. The controller may be a programmable microprocessor, a digital signal processor, or combination programmable microprocessor and digital signal processor. The controller may also include other analog and digital components and circuits such as analog-to-digital converters (ADC), digital to analog converters (DAC), digital and/or analog filters, memory, buffers and the like.

The distortion compensation system 100 provides a portion of a path for an audio signal 102 to an amplifier 122 and to one or more speakers or drivers 128 and 130. The audio path may include various electrical and/or electronic components configured to process an audio signal, including switches, controllers, amplifiers, gates, suppressors, comparators, transistors, resistors, inductors, capacitors, diodes, clamps, buffers, memory and the like. The components may be physical devices configured to provide a discrete processing function, devices configured to execute code configured to carry out discrete and/or complex functions, computations, and calculations, or combinations thereof.

The audio signal 102 is a multi-channel digital signal. Each channel of the audio signal 102 may be a discrete-time signal whose values belong to a finite set, where at a point in time t, the signal has one of a finite number of discrete values. The signal may be a continuous stream or multi-bit binary signal whose vales may be represented by a “1” or a “0.” In an exemplary embodiment, each channel is a 24-bit digital signal. Although FIG. 1 illustrates a multi-channel audio signal 102 having two channels (Channel A and Channel B), the audio signal 102 may also have one or more channels. The multi-channel audio signal 102 also may include a channel for one of several speakers or drivers 128 and 130 and/or may include a channel that is split or shared among speakers or drivers 128 and 130. The channels may be paired or linked. For example, the audio signal may include signals to provide a stereophonic sound stage and/or a surround sound stage. The channels may be paired based on a location of a sound stage in which the signal is replicated. For example, front channels of a multi-channel signal 102 may be paired, rear channels may be paired, surround channels may be paired. The pairing or linking of the channels may allow for a balance signal processing according to the pairing or linking to maintain the dynamics of the sound stage of the multi-channel signal.

The distortion compensation system 100 controls gain and/or compression for the channels of the audio signal 102. The gain-controlled signal from the distortion compensation system 100 is provided to the amplifier 122, which increases the voltage of the audio signal 102. The amplifier 122 includes amplifier circuits 124 and 126 associated with each channel (Channel A and Channel B) of the audio signal 102. Each channel of the amplified audio signal 102 is sent to one or more corresponding loudspeakers or drivers 128 and 130. The loudspeakers 128 and 130 generate sound waves based on the received signal by converting the signals to audible sound.

The distortion compensation system 100 includes a processing path corresponding to each channel of the audio signal 102. Each audio path includes a limiter 114 and 116, a threshold detector 110 and 112, and a digital-to-analog converter (DAC) 118 and 120. Each channel of the audio is received at a corresponding limiter 114 and 116.

In some distortion compensation systems 100, the limiters 114 and 116 are configured as variable gain amplifiers that provide or control an amount of gain for the corresponding channel of the audio signal provided at its input. The amount of gain is controlled by a signal received from the corresponding threshold detector 110 and 112. The variable gain amplifiers 114 and 116 are controlled to reduce the amount of gain provided to the audio signal when the corresponding threshold detector 110 and 112 detects that the audio signal at the output of the corresponding variable gain amplifier exceeds a threshold. The variable gain amplifiers 114 and 116 are also controlled to increase the gain for the audio signal toward a unity gain when the corresponding threshold detector 110 and 112 detects that the audio signal at the output of the corresponding variable gain amplifier 114 and 116 does not exceed a threshold. Although FIG. 1 shows separate threshold detectors 110 and 112 for each processing path for illustrative purposes, the distortion compensation system 100 may have multiple threshold detectors 110 and 112 where each path includes at least one threshold detector, or may have a single threshold detector for all processing paths.

The distortion compensation system 100 also includes a processing path for a rail voltage signal 134. The rail voltage signal 134 may be associated with the power supply B+ for the audio system and/or components of an audio system such as amplifier 122. For example, in some automotive audio systems, the rail voltage B+ is the battery supply voltage for the vehicle.

The rail voltage signal 134 may be processed by the distortion compensation system 100 through a conditioning circuit 104. The conditioning circuit 104 may include electrical and electronic components configured to provide a conditioned signal to the distortion compensation system 100. The conditioning circuit may include switches, comparators, bridges, dividers, clamps, suppressors, combinations thereof and the like. The conditioning circuit 104 may include a voltage divider that reduces the rail voltage B+ to a range which may be processed by a controller. The conditioning circuit 104 may also include a diode circuit configured to clamp voltage spikes and other voltages that are outside an operating or input range for a controller.

The rail voltage signal 134 is provided to the distortion compensation system 100 as an analog, or continuous, signal. The rail voltage signal 134 is converted to a digital signal by an analog-to-digital converter (ADC) 106. The ADC 106 may be a sigma-delta, pipeline, folding/interpolating and/or flash type A/D converter. The ADC 106 may maintain about 10 bits or more of precision. The converted signal may be passed through a digital low pass filter (“LPF”) 108, which filters out noise and smooths fluctuations in the digital rail voltage signal.

The rail voltage signal 134 is received by the threshold detectors 110 and 112. The threshold detectors 110 and 112 compare the rail voltage signal to, or measure the rail voltage against, a reference. The reference may be a stored value or predetermined signal that represents a tuning voltage or other standard to which the rail voltage may be compared as a reference. The reference may represent the value of the rail voltage B+ at a time that the audio system is tuned or installed. The threshold detectors 110 and 112 compare the audio signal on the output of the corresponding limiter 114 and 116 to a variable threshold. When the audio signal on the output of the limiter 114 and 116 exceeds the threshold, the threshold detectors 110 and 112 control the corresponding limiter 114, 116 accordingly. In some systems where the limiters are configured as variable gain amplifiers, the threshold detectors 110 and 112 control the variable gain amplifiers 114, 116 to reduce or limit the amount of gain provided. When the audio signal on the output of variable gain amplifier 114 and 116 does not exceed the threshold, the gain is controlled to increase the gain provided. The gain may be increased to a maximum, such as unity gain. The gain may be increased at a release rate and/or decreased at an attack rate. For example, the gain may be increased at around 10 dB to around 100 dB per second, until the gain is set to unity gain, or until the corresponding threshold detector 110 and 112 determines that the audio signal exceeds the threshold and reduces the gain. The gain also may be reduced at an attack rate in the range of around 100 dB to around 1000 dB per second, until the audio signal does not exceed the threshold.

The threshold is varied, controlled, or adjusted according to the comparison of the rail voltage signal 134 to the reference or tuning voltage. For example, when the comparison of the rail voltage B+ to the reference or tuning voltage determines that the rail voltage is less than the reference or tuning voltage, the threshold is lowered. The threshold is lowered to a point or level appropriate for the detected rail voltage B+. When the comparison of the rail voltage B+ to the reference or tuning voltage determines that the battery voltage exceeds the reference or tuning voltage, the threshold may be increased. Increasing the threshold allows the threshold detector to control the variable gain amplifiers 114 and 116 according to a higher threshold when the rail voltage B+ is at a higher voltage, and at a lower threshold when the rail voltage B+ is at a lower voltage. The limiters 114 and 116 are controlled according to the amount of voltage that may be available to amplify the audio signal.

The DACs 118 and 120 receive the gain controlled audio signal from the corresponding variable gain amplifier 114 and 116. Each DAC 118 and 120 converts the digital audio signal at its input to a corresponding analog signal provided at it output. The DAC 118 and 120 may include switches, a network of resistors, current sources, capacitors, combinations thereof, and the like. The DAC's 118, 120 may be configured as a Pulse Width Modulator, an oversampling or Delta-Sigma DAC, a binary weighted DAC, a R2R Ladder DAC, a segmented DAC, or a hybrid DAC.

In another example of a distortion compensation system 100, the limiters 114, 116 may be configured as compressors. The compressor may adjust the level of the audio signal provided to the input. The compressor may reduce the level of louder passages in the audio signal to control distortion while still providing a higher overall signal level. At lower levels, the compressor passes the input signal to the output at a linear, or substantially linear level. The linear level may be, for example, about a 1:1 ratio. As the input signal increases, it approaches a threshold, or compression knee. At levels above the threshold or knee, the output signal is lower than the input signal, for example by a ratio of 2:1 or higher. In the example where one or more of the limiters 114 and 116 are configured as compressors. The threshold, or knee, of the compressor 114 and 116 is adjusted according to the rail voltage signal 134. The threshold is adjusted according to the comparison of the rail voltage signal 134 to the reference or tuning voltage. When the rail voltage B+ is less than the reference, the threshold is lowered to a point or level appropriate for the rail voltage B+. When the rail voltage B+ exceeds the reference, the threshold may be increased.

FIG. 2 illustrates a plot of input/output curves 200 for an exemplary distortion compensation system having limiters 114 and 116 configured as compressors. The input/output plot 200 includes a linear area 230 and a compression area 232. The linear area 230 and compression area 232 are separated at a compression knee 234, 236 and 238. In the linear area 236, the output of the compressor substantially follows the input to the compressor in a linear relationship. For example, for a range of inputs to the limiters configured as compressors the output has a linear relationship to the input signal. The linear relationship may have about a 1:1 ratio. As the input level increases, it approaches the compressor knee 234, 236 and 238. As the input level increases beyond the compressor knee 234, 236 and 238 and into the compression area 232, the output is compressed. In the compression area 232, the output will be less than the input. For example, in the compression area 232, the input-to-output ratio may be 5:1 where for every 5 dB of input the output may increase 1 dB.

As the rail voltage B+ changes, the distortion compensation system adjusts the compressor knee 234, 236 and 238 up or down the linear range of the compressor. For example, the compressor may be set to have a compressor knee 234 at a tuning or nominal voltage level. As the rail voltage B+ decreases from a tuning voltage, the compressor knee 234 for the tuning voltage is moved down the linear curve to a lower level 236 according to the lower rail voltage. As the rail voltage B+ increases from a tuning voltage, the compressor knee 234 for the tuning voltage 234 is moved up the linear curve to a higher level 238 according to the higher rail voltage. The compressor knee may be moved along the linear portion of the curve 200 according to the rail voltage B+. For lower rail voltages, the compressor knee 236 is lowered so that compression begins for lower levels of the input signal. For higher rail voltages B+, the compressor knee is increased so that compression does not begin until a higher input level.

FIG. 3 illustrates a distortion compensation system 300 having linked channels. A multi-channel signal 302 is provided to the distortion compensation system 302. The multi-channel signal 302 may be as described with reference to FIG. 1. The multi-channel signal 302 may be any signal having one or more channels. FIG. 3 illustrates a multi-channel signal 302 having two channels, Channel A and Channel B. Each channel is linked to a respective limiter 340 and 342. The limiters 340 and 342 may adjust a threshold of an audio processing circuit for a channel of the multi-channel signal 302 according to a threshold. For example, the limiters 340 and 342 may be as described for FIG. 1 to adjust a gain according to a rail voltage B+. Alternatively or in addition, the limiters may be configured as compressors where a compressor knee may be adjusted according to a rail voltage B+. The processed signal of the limiters 340 and 342 may be received by respective input channels 324 and 326 of an amplifier 322.

The limiters 340 and 342 may be linked based on a pairing. In the distortion compensation system 300 of FIG. 3, channel A limiter 340 is linked to channel B limiter 342. For example, the channel A limiter 340 may be associated with a right channel and the channel B limiter 342 may be associated with a left channel of a stereophonic signal. The multi-channel signal 302 may be a surround sound audio signal having a front right channel paired with a front left channel to provide a stable sound stage, where channel A limiter 340 processes the front right channel and channel B limiter 342 processes the front left channel according to a threshold that is controlled according to a rail voltage. The channel A limiter 340 is linked to the channel B limiter 342. By linking the limiters, a balance between the channels may be maintained according to the dynamics of a signal of one of the channel. The limiters 340 and 342 may be linked according to coded software for a configuration of a signal processor for the distortion compensation system 300. For example, limiter 340 attenuates the channel A signal based on detecting a portion of channel A that exceeds a threshold. The limiters are linked according to the signal or driver pairing so that the channel B limiter 342 will also substantially simultaneously attenuate the channel B signal, even though the channel B signal may not exceed the threshold. The linked limiters 340 and 342 maintain a preset balance or bias to provide a stable sound stage. If one channel is attenuated, a paired channel is also attenuated so that the original dynamics of the signal 302 may be perceived by a listener.

FIG. 4 illustrates a method for compensating for acoustic distortion. In the method, a gain of at least one channel of an audio signal is controlled according to whether the audio signal exceeds a variable threshold. The threshold may be varied or adjusted according to rail or supply voltage. The supply voltage may be provided by a battery or other constant voltage supply. In this method, the supply voltage is sensed 450. The sensed voltage is compared 452 to a control or baseline. For example, the control may be a tuning voltage and the sensed voltage is compared to a supply voltage during a tuning of the audio system. The threshold may be scaled 454 according to the comparison 452 of the sensed voltage to the control. The threshold may be adjusted or increased when the comparison shows that the sensed voltage is greater that the predetermined tuning voltage. Similarly, the threshold may be adjusted or decreased when the comparison shows that the sensed voltage is less than the predetermined tuning voltage.

The audio signal is controlled 456 according to the threshold. For example, the threshold may be a limit above which a gain or attenuation to a signal is provided to a channel of an audio signal. When a channel of the audio signal exceeds the threshold, the gain for the signal is decreased below unity gain so that the signal is attenuated. In an example, the gain may be reduced by an attack rate in the range of about 100 dB per second to about 1000 dB per second. When the signal no longer exceeds the threshold, the gain is increased back to unity gain.

While various embodiments of the invention have been described, it will be apparent to those of ordinary skill in the art that many more embodiments and implementations are possible within the scope of the invention. Accordingly, the invention is not to be restricted except in light of the attached claims and their equivalents. 

I claim:
 1. A memory storage device having stored therein code that is executable to compensate for acoustic distortion in an amplifier, the code executable by a processor, the memory storage device comprising: code that is executable to process an audio signal in an audio amplifier; code that is executable to determine an actual voltage of a rail of an audio amplifier power supply; code that is executable to compare the actual voltage of the rail of the audio amplifier to a reference; code that is executable to adjust a compressor knee of a compressor lower in response to the actual voltage being less than the reference, the compressor being included in the audio amplifier and the audio signal provided as an input to the compressor; and code executable to adjust the compressor knee of the compressor higher in response to the actual voltage being greater than the reference.
 2. The memory storage device of claim 1, where the compressor is configured to pass through substantially unchanged a portion of the audio signal that is below the compressor knee, and adjust a magnitude of a portion of the audio signal that is above the compressor knee.
 3. The memory storage device of claim 2, further comprising code that is executable to adjust the magnitude of the portion of the audio signal that is above the compressor knee by a predetermined input-to-output ratio that is other than 1:1.
 4. The memory storage device of claim 1, where the compressor knee is a threshold that separates a first input-to-output ratio of the compressor from a second input-to-output ratio of the compressor, the first and second input-to-output ratios being different.
 5. The memory storage device of claim 1, where the compressor comprises a plurality of compressors each having a respective compressor knee, and where the memory storage device comprises code executable to link the plurality of compressors, and where the code executable to adjust the compressor knee comprises code to substantially simultaneously adjust the compressor knee of all of the plurality of compressors that are linked.
 6. The memory storage device of claim 1, where the reference is a predetermined reference voltage stored in the memory storage device. 